function PyroAPI(pyroInstanceID)
{
	this.pyroInstance = pyroInstanceID;
}

PyroAPI.prototype.playVideo = function(url)
{
	if (url != undefined)
	{
		this.getFlashMovie().playVideo(url);
	}
	else
	{
		this.getFlashMovie().playVideo();
	}	
}

PyroAPI.prototype.pauseVideo = function() {
	this.getFlashMovie().pauseVideo();
}

PyroAPI.prototype.togglePauseVideo = function()
{
	this.getFlashMovie().togglePauseVideo();
}

PyroAPI.prototype.stopVideo = function()
{
	this.getFlashMovie().stopVideo();
}

PyroAPI.prototype.seekTo = function(timeOffset)
{
	this.getFlashMovie().seekVideo(timeOffset);
}


PyroAPI.prototype.playMID = function(mid)
{
	this.getFlashMovie().getMID(mid);
}


PyroAPI.prototype.getFlashMovie = function()
{
 	var isIE = navigator.appName.indexOf("Microsoft") != -1;
 	return (isIE) ? window[this.pyroInstance] : document[this.pyroInstance];
}

